﻿using System.Text.Json.Serialization;

namespace MesApiSimulator.Objects
{
    /// <summary>
    /// 获取生产批次（工单号）结果
    /// </summary>
    public class GetBatchNosResult
    {
        /// <summary>
        /// 接口ID
        /// </summary>
        public int CmdID { get; set; } = 605;
        /// <summary>
        /// 设备编号
        /// </summary>
        [JsonPropertyName("EID")]
        public string EID { get; set; } = "FR01";
        /// <summary>
        /// 1：成功，其他：失败
        /// </summary>
        [JsonPropertyName("Status")]
        public int Status { get; set; } = 1;
        /// <summary>
        /// 错误消息内容
        /// </summary>
        public string Msg { get; set; } = "获取成功";
        /// <summary>
        /// 产品型号集合
        /// </summary>
        [JsonPropertyName("Data")]
        public string[]? Data { get; set; } = ["M271LC230325", "M254LC230315", "M2TT71LC230312", "M271LC230310"];
    }
}
